package it.magazzinoCofi.controllers;

import it.magazzinoCofi.model.Model;
import it.magazzinoCofi.view.BaseFrame;

import java.util.Observable;

public abstract class AbstractController extends Observable {
	
	
	/**
	 * il controller deve interagire sia con la view che con il modello
	 * 
	 * NotifyObserver(riceve in ingresso l'oggetto Notify, riferimenti nell'interfaccia Notifica
	 */
	private Model m_model;
	/**
	 * Field m_view.
	 */
	private BaseFrame m_view;

	public AbstractController() {
		
	}

	public AbstractController(Model model, BaseFrame view) {
		this.m_model = model;
		this.m_view = view;

	}

	public Model getM_model() {
		return m_model;
	}

	public BaseFrame getM_view() {
		return m_view;
	}

}
